using System;
using System.Data;
using System.Collections.Generic;
using System.ServiceModel;
using eTMS.DAO;
namespace eTMS.Services{
	/********************************BEGIN ThietBiKhuNhaServiceBase****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:08/10/2010 00:09:08</para>
	/// <para>Class Name: ThietBiKhuNhaServiceBase</para>
	/// <para>Description: </para>
	///</summary>

	
	public partial class ThietBiKhuNhaService : IThietBiKhuNhaService{


		#region Select functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:08/10/2010 00:09:08</para>
		/// <para>Name: SelectOne</para>
		/// <para>Input: ThietBiKhuNha_ID</para>
		/// <para>Output: ThietBiKhuNhaEntity</para>
		///</summary>
		public ThietBiKhuNhaEntity SelectOne(int ThietBiKhuNha_ID){
			ThietBiKhuNhaDAO dao = new ThietBiKhuNhaDAO();
			return dao.SelectOne(ThietBiKhuNha_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:08/10/2010 00:09:08</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of ThietBiKhuNhaEntity</para>
		///</summary>
		public List<ThietBiKhuNhaEntity> SelectAll(){
			ThietBiKhuNhaDAO dao = new ThietBiKhuNhaDAO();
			return dao.SelectAll();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:08/10/2010 00:09:08</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDS(){
			ThietBiKhuNhaDAO dao = new ThietBiKhuNhaDAO();
			return dao.SelectAllDS();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:08/10/2010 00:09:08</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of ThietBiKhuNhaEntity</para>
		///</summary>
		public List<ThietBiKhuNhaEntity> SelectAllFilter(string strFilter){
			ThietBiKhuNhaDAO dao = new ThietBiKhuNhaDAO();
			return dao.SelectAllFilter(strFilter);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:08/10/2010 00:09:08</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSFilter(string strFilter){
			ThietBiKhuNhaDAO dao = new ThietBiKhuNhaDAO();
			return dao.SelectAllDSFilter(strFilter);
		}
		#endregion

		#region Insert functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:08/10/2010 00:09:08</para>
		/// <para>Name: Save</para>
		/// <para>Input: ThietBiKhuNhaEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Save(ThietBiKhuNhaEntity o){
			ThietBiKhuNhaDAO dao = new ThietBiKhuNhaDAO();
			return dao.Save(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:08/10/2010 00:09:08</para>
		/// <para>Name: Save</para>
		/// <para>Input: ThietBiKhuNhaEntity</para>
		/// <para>Output: ThietBiKhuNhaEntity</para>
		///</summary>
		public ThietBiKhuNhaEntity SaveRet(ThietBiKhuNhaEntity o){
			ThietBiKhuNhaDAO dao = new ThietBiKhuNhaDAO();
			dao.Save(o);
			return o;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:08/10/2010 00:09:08</para>
		/// <para>Name: SaveList</para>
		/// <para>Input: List of ThietBiKhuNhaEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void SaveList(List<ThietBiKhuNhaEntity> list){
			ThietBiKhuNhaDAO dao = new ThietBiKhuNhaDAO();
			dao.SaveList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:08/10/2010 00:09:08</para>
		/// <para>Name: SaveListRet</para>
		/// <para>Input: List of ThietBiKhuNhaEntity</para>
		/// <para>Output: List of ThietBiKhuNhaEntity</para>
		///</summary>
		public List<ThietBiKhuNhaEntity> SaveListRet(List<ThietBiKhuNhaEntity> list){
			this.SaveList(list);
			return list;
		}
		#endregion

		#region Update functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:08/10/2010 00:09:08</para>
		/// <para>Name: Update</para>
		/// <para>Input: ThietBiKhuNhaEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Update(ThietBiKhuNhaEntity o){
			ThietBiKhuNhaDAO dao = new ThietBiKhuNhaDAO();
			return dao.Update(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:08/10/2010 00:09:08</para>
		/// <para>Name: UpdateList</para>
		/// <para>Input: List of ThietBiKhuNhaEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void UpdateList(List<ThietBiKhuNhaEntity> list){
			ThietBiKhuNhaDAO dao = new ThietBiKhuNhaDAO();
			dao.UpdateList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:08/10/2010 00:09:08</para>
		/// <para>Name: UpdateKhuNha_ID</para>
		/// <para>Input: NewKhuNha_ID,ThietBiKhuNha_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateKhuNha_ID(int NewKhuNha_ID,int ThietBiKhuNha_ID){
			ThietBiKhuNhaDAO dao = new ThietBiKhuNhaDAO();
			return dao.UpdateKhuNha_ID(NewKhuNha_ID,ThietBiKhuNha_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:08/10/2010 00:09:08</para>
		/// <para>Name: UpdateLoaiThietBi_ID</para>
		/// <para>Input: NewLoaiThietBi_ID,ThietBiKhuNha_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateLoaiThietBi_ID(int NewLoaiThietBi_ID,int ThietBiKhuNha_ID){
			ThietBiKhuNhaDAO dao = new ThietBiKhuNhaDAO();
			return dao.UpdateLoaiThietBi_ID(NewLoaiThietBi_ID,ThietBiKhuNha_ID);
		}
		#endregion

		#region Delete functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:08/10/2010 00:09:08</para>
		/// <para>Name: Delete</para>
		/// <para>Input: ThietBiKhuNhaEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Delete(ThietBiKhuNhaEntity o){
			ThietBiKhuNhaDAO dao = new ThietBiKhuNhaDAO();
			return dao.Delete(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:08/10/2010 00:09:08</para>
		/// <para>Name: DeleteByID</para>
		/// <para>Input: ThietBiKhuNha_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByID(int ThietBiKhuNha_ID){
			ThietBiKhuNhaDAO dao = new ThietBiKhuNhaDAO();
			return dao.DeleteByID(ThietBiKhuNha_ID);
		}
		#endregion

		#region Select join to KhuNhaLoaiThietBi functions
		#endregion

		#region Select join to KhuNha functions
		#endregion

		#region Select join to LoaiThietBi functions
		#endregion

		#region Select,delete by ThietBiKhuNha_ID functions
		#endregion

		#region Select,delete by KhuNha_ID functions
		#endregion

		#region Select,delete by LoaiThietBi_ID functions
		#endregion
	}
	/*****************************************************************************************************/
	/**********************************END ThietBiKhuNhaWebServiceBase*****************************************/
	/*****************************************************************************************************/
}

